{% macro render_field(field) %}
{#    <tr>#}
{#        <td>{{ field.label }}</td>#}
{#        <td>{{ field(**kwargs) }}</td>#}
{#        <td>#}
{#            {% if field.errors %}#}
{#                <ul>#}
{#                    {% for error in field.errors %}#}
{#                        <li>{{ error }}</li>#}
{#                    {% endfor %}#}
{#                </ul>#}
{#            {% endif %}#}
{#        </td>#}
{#    </tr>#}
    <div class="form-group">
        {{ field.label(class="col-lg-2 col-sm-2 control-label") }}
        <div class="col-lg-3">
            {{ field(class="form-control") }}
        </div>
        {% if field.errors %}
            {% for error in field.errors %}
                <li>{{ error }}</li>
            {% endfor %}
        {% endif %}
    </div>
{% endmacro %}